<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>ajax</title>
	<meta name="csrf-token" content="{{ csrf_token() }}">
</head>
<body>
	<button>点击发送</button>
	
	<script type="text/javascript" src='./js/jquery-1.8.3.min.js'></script>
	<script type="text/javascript">
	$.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
	});

	//点击事件
	$('button').click(function(){

		//以post的方式发送
		$.post('pro','',function(data){

			alert(data);
		})
	})

	</script>
</body>
</html>